package com.soulkun.smarthome.logic.service

import com.soulkun.smarthome.logic.model.WeatherMinutelyResultModel
import com.soulkun.smarthome.logic.model.WeatherModel
import com.soulkun.smarthome.logic.model.WeatherRealtimeResultModel
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Path

interface CaiyunWeatherService {

    @GET("{longitude},{latitude}/realtime")
    fun getWeatherRealtime(@Path("longitude") longitude: Double, @Path("latitude") latitude: Double): Call<WeatherModel<WeatherRealtimeResultModel>>

    @GET("{longitude},{latitude}/minutely")
    fun getWeatherMinutely(@Path("longitude") longitude: Double, @Path("latitude") latitude: Double): Call<WeatherModel<WeatherMinutelyResultModel>>

}